
// import React from "react"
// import logo from './assets/logo.png'

// class App extends React.Component {
//     render() {
//         return (
//             <div>
//                 react hello world !!!
//                 <img src={ logo } alt="" />
//             </div>
//         );
//     }

// }

// export default App;
// _____________________________

import { useState } from "react";
import logo from './assets/logo.png';

function App() {
    const [num, setNum] = useState(0);
    return (
        <div>
            <h1>{num}</h1>
            <button onClick={() => setNum(num + 1)}>+1</button>
            <button onClick={() => setNum(num - 1)}>-1</button>
            <div><img src={logo} alt="" /></div>
        </div>
        
    );
}

export default App;